﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PubSubLite
{
    public interface ISubscriber<T>
    {
        /// <summary>
        /// Each subscriber will be notified when a matching message
        /// is sent on the bus
        /// </summary>
        /// <param name="message"><see cref="IBusMessage"></see></param>
        void HandleMessage(IMessage<T> message);
    }
}
